<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%
    String[] str = {"abc", "def", "grd"};
%>
<c:forEach var="name" items="<%=str%>>">
    ${name} <br />
</c:forEach>

<%
    Map<String, String> map = new HashMap<>();
    map.put("zhangsan", "100");
    map.put("lisi", "90");
    map.put("wangwu", "66");
%>

<c:forEach var="entry" items="<%=map%>">
    ${entry.key}&nbsp; ${entry.value} <br />
</c:forEach>

<%
    List<Integer> list = new ArrayList<>();
    list.add(1);
    list.add(2);
    list.add(3);
    list.add(4);
    list.add(5);
%>
<c:forEach var="val" items="<%=list%>" begin="1" end="3" step="2">
    ${val}&nbsp;
</c:forEach>